//
//  Demo1ViewController.m
//  AFN_UIKit_Read
//
//  Created by tu jinqiu on 2017/8/30.
//  Copyright © 2017年 tu jinqiu. All rights reserved.
//

#import "Demo1ViewController.h"
#import "DemoCollectionView.h"

@interface Demo1ViewController ()<DemoCollectionViewWPDelegate>

@property (nonatomic, strong) DemoCollectionView *collectionView;

@end

@implementation Demo1ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.collectionView = [DemoCollectionView DemoCollectionViewWithWPDelegate:self];
    [self.view addSubview:self.collectionView];
}

- (void)collectionView:(DemoCollectionView *)collectionView cell:(DemoCell *)cell atIndexPath:(NSIndexPath *)indexPath
{
    cell.imageView.image = [UIImage imageNamed:@""];
}

@end
